﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using SaleManagement.Model;

namespace SaleManagement.Services.Mapping
{
    public class OrderMapping
    {
        public static Order ConvertToEntity(ViewModelOrder model)
        {
            Order entity = new Order();
            entity.Id = model.Id;
            entity.CustomerId = model.CustomerId;
            entity.Date = model.Date;
            entity.OrderNumber = model.OrderNumber;
            entity.ShipId = model.ShipId;

            entity.Status = model.Status;
            return entity;
        }
    }
}
